#ifndef __HIKARI_MoveByKeyboard___FILE__DEFINED
#define __HIKARI_MoveByKeyboard___FILE__DEFINED

#include "hikari.h"

class MoveByKeyboard:public BaseHikariScript{
public:
//PLEASE DO NOT MODIFY THIS SECTION
//PROPERTIES_SECTION_START
//PROPERTIES_SECTION_END
    //virtual void sceneLoaded(HObj*object, HikariContext*context){}
	//virtual void sceneUnloading(HObj*object, HikariContext*context){}
	virtual void update(HObj*object, HikariContext*context){
		if(context->getInput()->IsKeyDown(KEY_UP)){
			object->moveZ(1);
		}
		if(context->getInput()->IsKeyDown(KEY_DOWN)){
			object->moveZ(-1);
		}
		if(context->getInput()->IsKeyDown(KEY_LEFT)){
			object->moveX(-1);
		}
		if(context->getInput()->IsKeyDown(KEY_RIGHT)){
			object->moveX(1);
		}
	}
    
	IMPLEMENT_RTTI(MoveByKeyboard, BaseHikariScript);
};
BEGIN_REFLECTION_METADATA(MoveByKeyboard, base_rtti_object)
END_REFLECTION_METADATA(MoveByKeyboard)

#endif